Repository navigation
Fix React Native lifecycle, surface, and session edge cases - #310
Merged
schwartzmx merged 6 commits intoOct 31, 2026
Merged
Conversation
- Require child identity to match before removing a name-keyed surface.\n- Keep a newly registered replacement when an older instance unmounts.\n- Cover the shared hierarchy and React Native surface registry behavior.
- Add an opt-in hold for brief transitions away from the active state. - Preserve the original departure timestamp and latest held state. - Flush elapsed departures before active when backgrounded timers were paused. - Keep immediate dispatch as the default and clear held timers on disposal. - Cover lifecycle, heartbeat, and app-state publisher behavior.
- Accept a session timeout through plugin and compatibility initialization.\n- Preserve the thirty-minute default for omitted or invalid values.\n- Pass the timeout into the in-memory runtime session.\n- Cover custom rotation, activity refresh, and event-index reset behavior.
- Make session reads and ordinary event creation side-effect free. - Rotate before publishing UI and screen activity after an idle timeout. - Keep scheduled heartbeats in the current session without extending inactivity. - Preserve timeout defaults and event-index reset behavior for this change. - Cover idle heartbeat suppression, timeout boundaries, taps, and screens.
- Preserve the runtime event-index sequence across session rotation. - Keep cross-session related-event references globally unambiguous. - Verify session expiration continues the contiguous event sequence. - Cover a surface mounted before rotation and unmounted afterward.
- Publish the provisional runtime context before plugin lifecycle start hooks run. - Let synchronous startup events resolve session and application identity. - Keep AutoLogging.isInitialized false until initialization completes. - Clear provisional context after installation or startup failures. - Cover real heartbeat startup, rollback, disposal, and fresh retry behavior.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix React Native lifecycle, surface, and session edge cases
831d6aa3— Preserve replacement surfaces during stale cleanup41af3924— Coalesce transient React Native app-state changes52be5878— Make React Native session timeout configurablesessionTimeoutMswhile preserving the 30-minute default and invalid-value fallback.1e27ec8a— Rotate React Native sessions only on activity6c0970c1— Keep React Native event indexes monotonicValidation
npm run build:mobilepasses.